package com.penglecode.netty.server.test;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.penglecode.netty.server.NettyServer;

@SuppressWarnings("resource")
public class ServerBootstrap {

	public static void main(String[] args) {

		ApplicationContext applicationContext = new ClassPathXmlApplicationContext(
				new String[] {
						"classpath:com/penglecode/netty/server/test/applicationContext-server.xml",
						"classpath:com/penglecode/netty/server/test/applicationContext-service.xml" });
		NettyServer nettyServer = (NettyServer) applicationContext.getBean("nettyServer");
		nettyServer.start();
	}

}
